<html>
 <head>
  <link href="./leetcode-problem.css" rel="stylesheet" type="text/css">
 </head>
 <body>
  <div class="question_difficulty">
   难度：Medium
  </div>
  <div>
   <h1 class="question_title">
    180. Consecutive Numbers
   </h1>
   <p>
    Write a SQL query to find all numbers that appear at least three times consecutively.
   </p>
   <pre>
+----+-----+
| Id | Num |
+----+-----+
| 1  |  1  |
| 2  |  1  |
| 3  |  1  |
| 4  |  2  |
| 5  |  1  |
| 6  |  2  |
| 7  |  2  |
+----+-----+
</pre>
   <p>
    For example, given the above
    <code>
     Logs
    </code>
    table,
    <code>
     1
    </code>
    is the only number that appears consecutively for at least three times.
   </p>
   <pre>
+-----------------+
| ConsecutiveNums |
+-----------------+
| 1               |
+-----------------+
</pre>
  </div>
  <div>
   <h1 class="question_title">
    180. 连续出现的数字
   </h1>
   <p>
    编写一个 SQL 查询，查找所有至少连续出现三次的数字。
   </p>
   <pre>+----+-----+
| Id | Num |
+----+-----+
| 1  |  1  |
| 2  |  1  |
| 3  |  1  |
| 4  |  2  |
| 5  |  1  |
| 6  |  2  |
| 7  |  2  |
+----+-----+
</pre>
   <p>
    例如，给定上面的
    <code>
     Logs
    </code>
    表，
    <code>
     1
    </code>
    是唯一连续出现至少三次的数字。
   </p>
   <pre>+-----------------+
| ConsecutiveNums |
+-----------------+
| 1               |
+-----------------+
</pre>
  </div>
 </body>
</html>